<me:UIHR20WEAVER x:Class="WPFExcelReport.THR20RT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIHR20WEAVER.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby1000 x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIHR20WEAVER.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WrapPanel  Grid.Column="0"> 
            <WrapPanel>
                <SD:KB9318 Margin="5,0,0,0" LMS="1" KEY="{Binding SHIFT,ElementName=TV}" FontSize="20" Height="40" Width="80"/>
                <SD:KB9318 Margin="5,0,0,0" LMS="2" KEY="{Binding SHIFT,ElementName=TV}" FontSize="20" Height="40" Width="80"/>
            </WrapPanel> 
        </WrapPanel>
        <WrapPanel Grid.Column="2">
            
            <ListBox  Margin="10,0,0,0" 
                      ItemsSource="{Binding Source={StaticResource ResourceKey=vwMaster}}"   
                                ScrollViewer.CanContentScroll="True">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel  MaxWidth="300" Background="Pink"/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Grid Width="60">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <TextBlock Grid.Row="0" Text="{Binding Path=HRNNAME}"  Width="60"/>
                        </Grid>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            
        </WrapPanel>
        <WrapPanel Grid.Column="1" HorizontalAlignment="Right"> 
            <Button Margin="5,0,0,0" Content="{Binding Source={Localization:Translate Word=产量}}" Click="ShiftProdctionCommand" Height="40" Width="60" FontSize="20" />
            <ex:TXT72 Text="{Binding QTY,Converter={StaticResource d1000},ElementName=TV}"  Height="40"
                               IsAutoClear="True"
                               FontSize="20" 
                             
                                Width="80"
                               TextAlignment="Center" VerticalContentAlignment="Center" />
            <Button  Content="{Binding Source={Localization:Translate Word=确认}}"  Height="40" Width="60"  FontSize="20"   Click="ShiftProdctionCommand"/>
        </WrapPanel>
    </Grid>
</me:UIHR20WEAVER>
